<?php

namespace app\api\controller;

use app\common\lib\Param;
use app\common\lib\Show;
use app\common\lib\Str;
use app\Request;
use think\facade\Cache;
use think\response\Json;

class Pages extends ApiBase
{

    public function detail(): Json
    {
        $pageBis = new \app\common\business\Pages();

        try {
            $info = $pageBis->getNormalById(1);
        } catch (\Exception $e) {
            return Show::error([], $e->getMessage(), $e->getCode());
        }
        return Show::success($info);
    }
}
